package com.smarthome.rpc.hkVideo;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Service;
import com.smarthome.common.tools.BossCachedKeysUtil;
import com.smarthome.common.tools.cache.JedisUtils;

@Service("hkGetCameraInfoController")
public class GetCameraInfoController extends BaseController {

	public String getCamerainfo(String devSerial) throws Exception {
		Map<String, Object> paramsMap = new HashMap<String, Object>();
		paramsMap.put("deviceSerial", devSerial.trim());
		paramsMap.put("accessToken",
				JedisUtils.get(BossCachedKeysUtil.getKey(BossCachedKeysUtil.MODULE_HK_VIDEO_TOKEN, "1")));
		Map<String, Object> map = paramsInit("camera/getCameraInfo", paramsMap);
		return doPost(map);
	}

}
